<?php $this->load->view('config/header_home');?>

<h2>Rekapitulas</h2>
<div class="line-separtor"></div>
<br/>
<table class="table table-condensed table-hover">
	<thead>
		<th>#</th>
		<th>Bulan - Tahun</th>
		<th>Jumlah Pengajuan SKCK</th>
		<th>Aksi</th>
	</thead>
	<tbody>
	<?php if (@$results):?>
		<?php $i=1;?>
		<?php foreach ($results as $row):?>
		<tr>
			<td><?php echo $i;?></td>
			<td>
            	<?php echo strftime("%B",strtotime($row['tgl_terbit_police']));?>&nbsp;
				<?php echo strftime("%Y",strtotime($row['tgl_terbit_police']));?>
			</td>
			<td><?php echo $row['total_pengaju']?></td>
			<td>
				<a href="<?php echo site_url()?>rekap/detailData/<?php echo $row['bulan']?>/<?php echo $row['tahun']?>" role="button" class="icon-list-alt" data-target="#myModal" data-toggle="modal" ></a>
			</td>
		</tr>
		<?php $i++;?>
		<?php endforeach?>
	<?php else:?>
		<tr>
			<td colspan="4">
				<br/>
				<div class="alert alert-error" style="text-align:center">
					Tidak ada record
				</div>
			</td>
		</tr>
	<?php endif?>
	</tbody>
</table>

<div id="myModal" class="modal fade hide" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" >
<div class="modal-header">
	<button type="button" class="close" data-dismiss="modal" aria-hidden="true" onclick="location.reload();"> <img src="content/img/close_button-512.png" width="30px" height="30px"> </button>
	<h4 id="myModalLabel">Detail rekap </h4>
</div>
<div class="modal-body" >
	<!-- content -->
</div>
<div class="modal-footer">
	<button class="btn" data-dismiss="modal" aria-hidden="true" onclick="location.reload();">Tutup</button>
</div>
</div>
<?php $this->load->view('config/footer_home');?>